<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <title>LZXリファレンス lzkeys</title>
  <othercredit role="translator">
    <firstname>Atuo</firstname>
    <surname>Seki</surname>
        <contrib>2006/05/17　翻訳初版</contrib>
 </othercredit>
<link rel="STYLESHEET" type="text/css" href="./styles.css" /></head>
<body>

<!-- ===================================================================== -->
<!-- = XML information goes here                                         = -->
<!-- ===================================================================== -->
<lzelement title="LzKeys">
    <lztier>Service</lztier>
    <lzcategory>Event</lzcategory>
    <lzshortdesc>
             キーボード入力サービス。
    </lzshortdesc>
    <lzapi>api-lzkeys.xml</lzapi>
</lzelement>

<p>キーボード入力イベントを扱うサービス。</p>

<p>ここに例を示します：</p>

<example title="LzKeys">
&lt;canvas height="140" debug="true"&gt;
  &lt;method event="onkeydown" reference="LzKeys" args="k"&gt;
    Debug.write("key " + k + " down");
  &lt;/method&gt;
  &lt;method event="onkeyup" reference="LzKeys" args="k"&gt;
    Debug.write("key " + k + " up");
  &lt;/method&gt;
  &lt;method name="pressA"&gt;
    Debug.write("A pressed");
  &lt;/method&gt;
  &lt;method event="oninit"&gt;
    del = new LzDelegate(this, "pressA");
    LzKeys.callOnKeyCombo(del, ["A"]);
  &lt;/method&gt; 
&lt;/canvas&gt;
</example>

</body>
</html>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2001-2004 Laszlo Systems, Inc.  All Rights Reserved.              *
* Use is subject to license terms.                                            *
* X_LZ_COPYRIGHT_END ****************************************************** -->
